package com.troila.cloud.simplify.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import com.troila.cloud.simplify.model.STitle;

public interface STitleRepository extends JpaRepository<STitle, Integer> {
	
	public STitle findById(int id);
	
	public Page<STitle> findAllByTStatusAndMediaKey(Pageable pageable,int status,String mediaKey);
	
	public Page<STitle> findAllByMediaKey(Pageable pageable,String mediaKey);
}
